#!/usr/bin/env node

const Radio = require('./03-radio'),
      log = console.log;

const station = {
  freq:'126',
  name:'radio'
}

let r1 = new Radio(station);

r1.on('play',(s)=>{
  log('"%s" FM %s played', s.name, s.freq);
  log('cicici');
});

r1.on('stop',(s)=>{
  log('"%s" FM %s stoped', s.name, s.freq);
});

